package com.example.aop.controller;

import com.example.aop.aspect.MyAspect;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HelloController
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/12/2 11:35
 * @Version 1.0
 */
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello() {
        return "hello";
    }
    @MyAspect
    @RequestMapping("/h1")
    public String h1() {
        return "h1";
    }
    @RequestMapping("/h2")
    public String h2() {
        return "h2";
    }
}
